package com.sol.mapreduce.util;

import cn.hutool.core.io.FileUtil;

import java.io.File;

/**
 * @author: lujie
 * @date: 2021/11/29 19:56
 **/
public class SysUtil {
    /**
     * 项目路径
     */
    public final static String INPUT_RESOURCES_PATH = "D:\\mapreduce\\input\\";


    public static  String inputPath (String caseName){
        return  INPUT_RESOURCES_PATH + "\\" + caseName;
    }


    public static  String outputPath (String caseName){
       String outputPath =  SysUtil.inputPath(caseName) + "\\" +"result";
       if (FileUtil.exist(outputPath)){
           FileUtil.del(outputPath);
       }
        return outputPath;
    }
}
